remotemanager.JUBEInterop.JUBEInterop module

class remotemanager.JUBEInterop.JUBEInterop.JUBETemplate(template: str, platform: str, **kwargs)[source]

Extends BaseComputer to provide compatibility with JUBE platforms

classmethod from_repo(path: str, branch: str = 'develop', repo: str = 'https://gitlab.com/max-centre/JUBE4MaX', platform_name: str = 'platform.xml', template_name: str = 'submit.job', local_dir: None | str = None, **kwargs)[source]

Pulls a platform and template from a gitlab repository

Files will be pulled from a combination of repo, branch and name

e.g. from_repo(

repo=”https://gitlab.com/l_sim/remotemanager”, branch=”devel”, name=”tests/standard/foo”

)

This will look for the two links: https://gitlab.com/l_sim/remotemanager/-/raw/devel/tests/standard/foo/platform.xml https://gitlab.com/l_sim/remotemanager/-/raw/devel/tests/standard/foo/submit.job

A general form of the links are: {repo}/-/raw/{branch}/{name}/{platform_name} {repo}/-/raw/{branch}/{name}/{template_name}

property platform_path: str

Path to the platform file

Performs a regex search for unlinked JUBE $parameters within a value

Parameters:

sub – Substitution object to check

Performs recursive linking for target sub

remotemanager.JUBEInterop.JUBEInterop.attempt_eval(value: str)[source]

Attempt to evaluate value